package cn.exrick.xboot.supervisionDepartment.controllerImpl

import cn.exrick.xboot.base.dto.MyReportDto
import cn.exrick.xboot.base.entity.MyReport
import cn.exrick.xboot.base.service.IMyReportService
import cn.exrick.xboot.base.vo.MyReportDetailVo
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.supervisionDepartment.controller.ISupervisionDepartmentController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class MyReportController: ISupervisionDepartmentController.IMyReport {

    @Autowired
    private lateinit var iMyReportService: IMyReportService


    override fun createReport(myReport: MyReport): Result<Any?>? {

        return iMyReportService.createReport(myReport)
    }

    override fun removeReport(id: String): Result<Any?>? {

        return iMyReportService.removeReport(id)
    }

    override fun getMyReportList(pageVo: PageVo): Result<MutableMap<String, Any?>>? {

        return iMyReportService.getMyReportList(pageVo)
    }

    override fun getMyReportDetail(id: String): Result<MyReportDetailVo>? {

        return iMyReportService.getMyReportDetail(id)
    }

    override fun getSupervisionPreCheckRePort(pageVo: PageVo): Result<MutableMap<String, Any?>>? {

        return iMyReportService.getSupervisionPreCheckRePort(pageVo)
    }

    override fun getSupervisionHaveCheckReport(pageVo: PageVo): Result<MutableMap<String, Any?>>? {

        return iMyReportService.getSupervisionHaveCheckReport(pageVo)
    }

    override fun resolveReport(myReportDto: MyReportDto): Result<Any?>? {

        return iMyReportService.resolveReport(myReportDto)
    }


}